package com.quanyan.common.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by yangyun on 2016/7/1.
 */
public enum SysParameterConfigEnum implements BaseEnum {

    CONFIG_CLIENT_ADDRESS_URL(1, "CLIENT_ADDRESS_URL", "客户端链接地址配置"),
    CONFIG_MAX_SUBJECT_NUMBER(2, "MAX_SUBJECT_NUMBER", "专题限制数量"),
    CONFIG_PLACE_ORDER_RULE(3, "PLACE_ORDER_RULE", "订场订单运营规则"),
    CONFIG_PLACE_SEARCH_TYPE(4, "PLACE_SEARCH_TYPE", "订场系统搜索类型"),
    PLACE_ORDER_CALLBACK_TYPE(5, "PLACE_ORDER_CALLBACK_TYPE", "场馆订单回调类型"),
    CONFIG_PLACE_SALEPLAN_SYNC_PERIOD(6, "PLACE_SALEPLAN_SYNC_PERIOD", "场馆销售计划同步周期"),
    PLACE_CONTAIN_VIP(7, "PLACE_CONTAIN_VIP", "场馆是否支持会员系统"),
    CONFIG_APP_SERVICE_MOBILE(8,"APP_SERVICE_MOBILE","百灵鸟客服电话"),
            PLACE_RECOMMEND_AREA(9,"PLACE_RECOMMEND_AREA","GPS定位到用户位置与场馆位置距离");

    private int id;

    private String code;

    private String label;

    SysParameterConfigEnum(int id, String code, String label){
        this.id = id;
        this.code = code;
        this.label = label;
    }

    @Override
    public boolean isSuccess() {
        return false;
    }

    @Override
    public int getId() {
        return this.id;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getLabel() {
        return this.label;
    }

    public static Map<String,String> getSysConfigEnum(){
        Map<String,String> sysConfigMap = new HashMap<String,String>();
        for (SysParameterConfigEnum tmpEnum : SysParameterConfigEnum.values()) {
            sysConfigMap.put(tmpEnum.getCode(), tmpEnum.getLabel());
        }
        return sysConfigMap;
    }

}
